package com.sofwin.controller;

import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.sofwin.pojo.Adrs;
import com.sofwin.service.AdrsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/adrs")
public class AdrsController extends BaseController {
    @Autowired
    private AdrsService adrsService;

    @GetMapping("/getAllAdrs")
    public AjaxResult getAllAdrs() {
        List<Adrs> list = adrsService.list();
        return AjaxResult.success("查询成功", list);
    }
}
